//创建路由器并转发

//引入路由
import { createRouter, createWebHashHistory } from "vue-router";
//引入模块
import About from '@/components/About.vue';
import Home from "@/components/Home.vue";
import Comment from "@/components/Comment.vue";

const router = createRouter({
    history: createWebHashHistory(),
    routes: [
        {
            path: '/home',
            component: Home
        },
        {
            path: '/about',
            component: About
        },
        {
            path: '/comment',
            component: Comment
        }
    ]
})

export default router;